import React from "react"
export default class Ui extends React.Component{
    componentWillMount(){
        this.changeName('首页')
    }
    changeName(payload){
        this.props.changeName(payload)
    }
    render(){
        console.log(this.props)
        return (
            <div>
                <h2>{this.props.title}</h2>
            </div>
        )
    }
}   